<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:103:"D:\phpstudy_pro\WWW\qdcrmceshi.com\public/../application/admin\view\qingdongams\event\event\detail.html";i:1751938036;s:77:"D:\phpstudy_pro\WWW\qdcrmceshi.com\application\admin\view\layout\default.html";i:1746006160;s:74:"D:\phpstudy_pro\WWW\qdcrmceshi.com\application\admin\view\common\meta.html";i:1746006160;s:76:"D:\phpstudy_pro\WWW\qdcrmceshi.com\application\admin\view\common\script.html";i:1746006160;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo htmlentities(\think\Config::get('fastadmin.adminskin') ?? ''); ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version') ?? ''); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config ?? ''); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo htmlentities($vo['url'] ?? ''); ?>"><?php echo htmlentities($vo['title'] ?? ''); ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <link href="/assets/addons/qingdongams/css/common.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<style type="text/css">
    .btn-list {
        position: fixed;
        right: 40px;
    }
    .div-flex {
        display: flex
    }
    .div-flex .form-group {
        margin-right: 25px;
        text-align: center;
        line-height: 25px;
        margin-bottom: 0;
    }
    .tab-pane {
        border: 1px solid #F6F6F6;
    }
    .i-color {
        font-size: 34px;margin-right: 10px;color: #86C3FF;
    }
    .i-marker {
        font-size: 18px;margin-right: 2px;color: #86C3FF;
    }
    .thumbnail {
        display: flow-root;
        width: max-content;
    }
    .thumbnail img {
        width: 50px;
        float: left;
        padding: 5px;
    }
</style>

<div class="panel panel-default panel-intro">
    <input type="hidden" name="ids" id="ids" value="<?php echo $row['id']; ?>"/>
    <div class="div-flex">
        <i class="fa fa-address-card i-color"></i>
        <div><b><?php echo $row['title']; ?></b>（<?php echo $row['event_type']; ?>）
            <p><span class="text-muted">备注:</span>
                <span><?php echo $row['remark']; ?></span></p>
        </div>
        <div class="btn-list">
            <?php if(!in_array(($row['status']), explode(',',"2,3"))): ?>
            <a class="btn btn-success btn-edit">编辑任务</a>

            <a class="btn btn-danger btn-dialog" data-area=["500px","400px"] data-refresh="true" data-shade="0.3"
               data-url="qingdongams/event/event/revoke?ids=<?php echo $row['id']; ?>"
               data-title="终止任务" >终止任务</a>
            <?php endif; ?>
        </div>
    </div>
    <div class="div-flex" style="margin-top: 20px">
        <div class="form-group">
            <span class="text-muted">计划状态</span>
            <p><?php echo $row['status_text']; ?></p>
        </div>
        <div class="form-group">
            <span class="text-muted">客户</span>
            <p><?php echo $row['customer']['name']; ?></p>
        </div>
        <div class="form-group">
            <span class="text-muted">负责人</span>
            <p><?php echo $row['staff']['name']; ?></p>
        </div>
        <div class="form-group">
            <span class="text-muted">紧要程度</span>
            <p><?php echo $row['level_text']; ?></p>
        </div>
        <div class="form-group">
            <span class="text-muted">开始时间</span>
            <p><?php echo $row['start_time']; ?></p>
        </div>
        <div class="form-group">
            <span class="text-muted">预计结束时间</span>
            <p><?php echo $row['end_time']; ?></p>
        </div>
        <div class="form-group">
            <span class="text-muted">创建时间</span>
            <p><?php echo $row['createtime']; ?></p>
        </div>
    </div>
    <div>

        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#record" aria-controls="home" role="tab" data-toggle="tab">计划动态</a></li>
            <li role="presentation"><a href="#settings5" aria-controls="profile" role="tab" data-toggle="tab">相关费用</a></li>
            <li role="presentation"><a href="#settings6" aria-controls="profile" role="tab" data-toggle="tab">客户需求</a></li>
        </ul>

        <div class="tab-content" style="overflow-y: scroll;height:565px">
            <div role="tabpanel" class="tab-pane fade active in panel-body form-horizontal" id="record">
                <?php if(empty($records) || (($records instanceof \think\Collection || $records instanceof \think\Paginator ) && $records->isEmpty())): else: if(is_array($records) || $records instanceof \think\Collection || $records instanceof \think\Paginator): if( count($records)==0 ) : echo "" ;else: foreach($records as $key=>$val): ?>
                <div class="div-record">
                    <div class="div-flex">
                        <i class="fa fa-user-circle-o i-color"></i>
                        <div><b><?php echo $val['staff']['name']; ?>（<?php echo $val['staff']['post']; ?>）</b> <span class="label label-success"><?php echo $val['relation_process']; ?></span>
                            <p class="text-muted"><?php echo $val['createtime']; ?></p>
                        </div>
                    </div>
                    <?php if($val['location']): ?>
                    <p class="text-info"><i class="fa fa-map-marker i-marker"></i>签到地点：<?php echo $val['location']; ?>（距离拜访人：<?php echo $val['distance']; ?>）</p>
                    <?php endif; ?>
                    <div class="well">
                        <?php echo $val['content']; if($val['file_ids']): ?>
                        <div class="thumbnail">
                            <?php if(is_array($val['file_ids']) || $val['file_ids'] instanceof \think\Collection || $val['file_ids'] instanceof \think\Paginator): if( count($val['file_ids'])==0 ) : echo "" ;else: foreach($val['file_ids'] as $key=>$vf): ?>
                            <a href="<?php echo $vf; ?>" target="_blank"><img data-tips-image src="<?php echo $vf; ?>" alt=""></a>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
            </div>
            <div role="tabpanel" class="tab-pane fade panel-body" id="settings5">
                    <div class="panel-body">
                        <div id="toolbar_consume" class="toolbar">
                            <?php echo build_toolbar('refresh'); ?>
                            <a class="btn btn-success btn-dialog"
                               data-url="qingdongams/customer/consume/add?customer_id=<?php echo $row['customer_id']; ?>&relation_id=<?php echo $row['id']; ?>&relation_type=event"
                               data-title="新建费用" data-refresh="true" data-area=["90%","90%"]>新建费用</a>
                        </div>
                        <table id="consume" class="table table-striped table-bordered table-hover table-nowrap"
                               width="100%">

                        </table>
                    </div>

            </div>
            <div role="tabpanel" class="tab-pane fade panel-body" id="settings6">
                    <div class="panel-body">
                        <div id="needs_customer" class="toolbar">
                            <?php echo build_toolbar('refresh'); ?>
                            <a class="btn btn-success btn-dialog"
                               data-url="qingdongams/event/event/add_needs?event_id=<?php echo $row['id']; ?>"
                               data-title="新建客户需求" data-refresh="true" data-area=["500px","300px"]>新建客户需求</a>
                        </div>
                        <table id="needs_table" class="table table-striped table-bordered table-hover table-nowrap"
                               width="100%">

                        </table>
                    </div>

            </div>

        </div>

    </div>
</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require.min.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version'] ?? ''); ?>"></script>

    </body>
</html>
